import { Entity, PrimaryGeneratedColumn, Column, BaseEntity, ManyToOne, OneToMany, JoinColumn, ManyToMany, JoinTable } from 'typeorm';

@Entity('setting_feedback')
export class SettingFeedback extends BaseEntity {
  @PrimaryGeneratedColumn({ comment: '反馈id' })
  feedback_id: number;

  @Column({ default: 0, comment: '会员id' })
  member_id: number;

  @Column({ type: 'tinyint', default: 0, comment: '类型：0功能异常，1产品建议，2其它' })
  type: number;

  @Column({ length: 255, default: '', comment: '标题' })
  title: string;

  @Column({ type: 'text', comment: '内容' })
  content: string;

  @Column({ length: 255, default: '', comment: '手机' })
  phone: string;

  @Column({ length: 255, default: '', comment: '邮箱' })
  email: string;

  @Column({ type: 'text', nullable: true, comment: '回复' })
  reply: string;

  @Column({ type: 'tinyint', default: 0, comment: '状态：0未回复，1已回复' })
  status: number;

  @Column({ length: 255, default: '', comment: '备注' })
  remark: string;

  @Column({ length: 16, default: '', comment: '回执编号' })
  receipt_no: string;

  @Column({ type: 'tinyint', default: 0, comment: '是否禁用，1是0否' })
  is_disable: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否删除，1是0否' })
  is_delete: number;

  @Column({ default: 0, comment: '添加用户id' })
  create_uid: number;

  @Column({ default: 0, comment: '修改用户id' })
  update_uid: number;

  @Column({ default: 0, comment: '删除用户id' })
  delete_uid: number;

  @Column({ type: 'datetime', nullable: true, comment: '添加时间' })
  create_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '修改时间' })
  update_time: Date;

  @Column({ type: 'datetime', nullable: true, comment: '删除时间' })
  delete_time: Date;
}
